<?php

$filePath = '../logins/logins.txt';
$lignes = file($filePath);
$pseudo = $_GET['pseudo'];
$pseudo2 = $pseudo."</br>"."\r\n" ;

foreach ($lignes as $num => $data) 
{
    if (strcmp($data,$pseudo2) === 0) 
	{
		
		echo "2";
				
    }

}

?>